﻿using System.Collections.Generic;

namespace RHD.Common.Web.Components.Grid {
	public class GridColumns {
		internal IList<GridColumnBuilder> columns;

		public GridColumns() {
			this.columns = new List<GridColumnBuilder>();
		}

		public GridColumnBuilder Add(string name = "") {
			GridColumnBuilder column = new GridColumnBuilder();
			column.Name(name);
			this.columns.Add(column);
			return column;
		}
	}
}